﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>商品展示</title>
	
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.10/css/all.css" integrity="sha384-+d0P83n9kaQMCwj8F4RJB66tzIwOKmrdb46+porD/OvrJ+37WqIM7UoBtwHO6Nlg" crossorigin="anonymous">
    <link rel="stylesheet" href="./css/catalog_1.css">
    <link rel="stylesheet" href="./css/style.css">
<link href="./css/common.css" rel="stylesheet" type="text/css">
<link href="./css/product.css" rel="stylesheet" type="text/css">


</head>
<body>
<header>
    <!-- 网站头部导航条，固定在顶部,导航条样式为dark，背景为dark -->
    <nav class="navbar fixed-top navbar-light shadow-sm">
        <div class="container">
            <div class="input-group">
                <img src="./images/logo.jpg" height="40px" alt="">
                <input type="text" class="form-control" placeholder="霸王防脱" style="margin-left: 14%;">
                <div class="input-group-append" style="margin-right: 25%">
                    <button class="btn btn-outline-danger" type="button"><i class="fa fa-search"></i></button>
                </div>
            </div>
        </div>
    </nav>
</header>
    <section id="nav-section">
        <div class="container">
            <div id="logoImg" class="shadow-sm">
                <img src="./images/logo.png" width="190px;" alt="" />
            </div>
            <ul class="nav float-right py-1">
                <li class="nav-item">
                    <a class="nav-link text-secondary" href="#">登录</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-secondary" href="#">|</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-secondary" href="#">注册</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-secondary" href="#">|</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-secondary" href="#">会员中心</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-secondary" href="#">|</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-secondary" href="#">购物指南</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-secondary" href="#">|</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-secondary" href="#">关于我们</a>
                </li>
            </ul>
        </div>
    </section>
    <section id="search-section">
        <div class="container py-4">
            <div class="row">
                <div class="input-group col-md-6 offset-md-3">
                    <input type="text" class="form-control" placeholder="霸王防脱">
                    <div class="input-group-append">
                        <button class="btn btn-outline-danger" type="button"><i class="fa fa-search"></i></button>
                    </div>
                </div>
                <div class="col-md-3">
                    <button type="button" class="btn btn-outline-danger px-5"><i class="fa fa-shopping-cart mr-1"></i>我的购物车</button>
                </div>
            </div>
        </div>
    </section>
    <section id="nav-list-section">
        <div class="container py-4">
            <div class="row">
                <ul class="nav col-md-9 offset-md-3">
                    <li class="nav-item">
                        <a class="nav-link text-secondary" href="#">|</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link text-dark" href="#">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link text-secondary" href="#">|</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link text-dark" href="#">定制套餐</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link text-secondary" href="#">|</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link text-dark" href="#">安全频道</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link text-secondary" href="#">|</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link text-dark" href="#">商城卡</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link text-secondary" href="#">|</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link text-dark" href="#">蔬菜基地</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link text-secondary" href="#">|</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link text-dark" href="#">节气养生</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link text-secondary" href="#">|</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link text-dark" href="#">便民服务</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link text-secondary" href="#">|</a>
                    </li>
                </ul>
            </div>
        </div>
    </section>
<div class="container productContent" style="margin-top: 100px;margin-left: 450px;">
		<div class="span18 last">	
			<div class="productImage">
					<a title="" style="outline-style: none; text-decoration: none;" id="zoom" href="http://image/r___________renleipic_01/bigPic1ea8f1c9-8b8e-4262-8ca9-690912434692.jpg" rel="gallery">
						<div class="zoomPad">
							<img style="opacity: 1;" title="" class="medium" src="./images/1.jpg">
							<div style="display: block; top: 0px; left: 162px; width: 0px; height: 0px; position: absolute; border-width: 1px;" class="zoomPup">
								
							</div>
							<div style="position: absolute; z-index: 5001; left: 312px; top: 0px; display: block;" class="zoomWindow">
								<div style="width: 368px;" class="zoomWrapper">
									<div style="width: 100%; position: absolute; display: none;" class="zoomWrapperTitle">
										
									</div>
									<div style="width: 0%; height: 0px;" class="zoomWrapperImage">
										<img src="" style="position: absolute; border: 0px none; display: block; left: -432px; top: 0px;">
									</div>
								</div>
							</div>
							<div style="visibility: hidden; top: 129.5px; left: 106px; position: absolute;" class="zoomPreload">Loading zoom</div>
						</div>
					</a>
				
			</div>
			<div class="name" id="name">大冬瓜</div>
			<div class="sn">
				<div id="id">编号：751</div>
			</div>
			<div class="info">
				<dl>
					<dt>亿家价:</dt>
					<dd>
						<strong id="price">￥：4.78元/份</strong>
					</dd>
				</dl>
					<dl>
						<dt>促销:</dt>
						<dd>
								<a target="_blank" title="限时抢购 (2014-07-30 ~ 2015-01-01)">限时抢购</a>
						</dd>
					</dl>
					<dl>
						<dt>    </dt>
						<dd>
							<span>    </span>
						</dd>
					</dl>
			</div>
				<div class="action">
					
						<dl class="quantity">
							<dt>购买数量:</dt>
							<dd>
								<input id="quantity" name="quantity" value="1" maxlength="4" onpaste="return false;" type="text">
								<div>
									<span id="increase" class="increase" onclick="upqty()">&nbsp;</span>
									<span id="decrease" class="decrease" onclick="downqty()">&nbsp;</span>
								</div>
							</dd>
							<dd>
								件
							</dd>
						</dl>
					<div class="buy">
							<input id="addCart" class="addCart" style="margin-right: 30px;" value="加入购物车" type="button">
							<input id="addOrder" class="addCart" value="下单" type="button">
					</div>
				</div>
			<div id="bar" class="bar">
				<ul>
						<li id="introductionTab">
							<a href="#introduction">商品介绍</a>
						</li>
						
				</ul>
			</div>
				
				<div id="introduction" name="introduction" class="introduction">
					<div class="title">
						<strong>商品介绍</strong>
					</div>
					<div>
						<img src="images/1.jpg">
					</div>
				</div>
				
				
				
		</div>
	</div>
    <footer>
        <div class="container">
            <ul class="nav col-md-8 offset-md-2 pt-3">
                <li class="nav-item">
                    <a class="nav-link text-dark" href="#">关于我们</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-secondary" href="#">|</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-dark" href="#">联系我们</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-secondary" href="#">|</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-dark" href="#">招贤纳士</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-secondary" href="#">|</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-dark" href="#">法律声明</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-secondary" href="#">|</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-dark" href="#">友情链接</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-secondary" href="#">|</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-dark" href="#">支付方式</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-secondary" href="#">|</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-dark" href="#">配送方式</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-secondary" href="#">|</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-dark" href="#">服务声明</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-secondary" href="#">|</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-dark" href="#">广告声明</a>
                </li>
            </ul>
        </div>
        <div class="text-center py-3">Copyright © 2018-2019 网上商城 版权所有</div>
    </footer>
</body>
<script src="https://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript">
	    window.onload=function () {
//      var a=GetRequest();
//      var index=a['Id'];
        var id=document.getElementById("id");
        var name=document.getElementById("name");
        var price=document.getElementById("price");
        
       		$.ajax({
	        url: '/eshop-project/Commodity/getById?id='+1,
	        type: 'POST',
	        cache: false,
	        processData: false,
	        contentType: false,
	        dataType: "json",
		    }).done(function(res){
		    	id.innerHTML = "编号："+res.id;
		    	name.innerHTML = res.name;
		    	price.innerHTML = "￥："+res.commercialPrice+"元/份";
		    }).fail(function(res){
		        alert("初始化商品失败");
		});
    }
	    function upqty(){
	    	var qty=document.getElementById("quantity");
	    	qty.value++;
	    }
	    function downqty(){
	    	var qty=document.getElementById("quantity");
	    	if(qty.value==0)
	    		return;
	    	qty.value--;
	    }
</script>
</html>